<?php
namespace app\admin\validate;

use think\Validate;

class MemberPayLog extends Validate
{
    protected $rule = [
	    ['gross','require|number','请输入金额|金额格式不正确'],
	    ['level','require','请选择等级'],
	    ['pay_time','require','请输入支付时间'],
	    ['expire_time','require','请输入到期时间'],
    ];

     protected $scene = [
        'add'  =>  ['gross','level','pay_time','expire_time'],
        'edit'  => ['gross','level','pay_time','expire_time'],
    ]; 
     
}